#ifndef DEVICEDIALOG_H
#define DEVICEDIALOG_H

#include <QDialog>

namespace Ui {
class DeviceDialog;
}

class rpi_device;
class SpinBoxDelegate;

class DeviceDialog : public QDialog
{
    Q_OBJECT
    
public:
    explicit DeviceDialog(QWidget *parent = 0,rpi_device *d=0,QStringList *dl=0);
    ~DeviceDialog();
signals:
    /*void configure(QString d,uint a,uint d,uint n
                   double x,double y,double z,
                   double t,double p,double s); */;
    void configure(DeviceDialog *d);
private:
    int type_v;
    QStringList type_list;
    QStringList device_list;
    Ui::DeviceDialog *ui;
    rpi_device *dev;
    SpinBoxDelegate *delegate;
public slots:
    void accept();
    void setHexAddress();
};

#endif // DEVICEDIALOG_H
